<?php 
$sid = $_GET['sid'];
   if (isset($_GET['me'])) {
       $candidate=='Mary Eve';
   } else if (isset($_GET['dk'])) {
       $candidate=='Denis Kioko';
   } else if (isset($_GET['pb'])) {
       $candidate=='Prin Blessings';
   }
 echo "{form:{
            title:'Fill this form',
            form_id:'vd',
            items:[
                {textfield:{id:'cou', label:'Your Country'}},
                {textfield:{id:'age',label:'Your Age'}},
               {checkbox:{id:'reg', label:'Check if registered voter'}},
                {radiobutton:{id:'nat',label:'Select your nationality',choices:[{choice:'Kenyan'},{choice:'Non kenyan'}]}}
                ]
          }
 }";
 header("location:process.php?status==$candidate");
?>
    